/*
 * @lc app=leetcode.cn id=344 lang=javascript
 *
 * [344] 反转字符串
 */

// @lc code=start
/**
 * @param {character[]} s
 * @return {void} Do not return anything, modify s in-place instead.
 */
var reverseString = function(s) {
    // for (let index = 1; index < s.length; index++) {
    //     const element = s[index];
    //     s.push(...s.splice(s.length - 1 - index, 1))
    // }
    return s.reverse()
};
// @lc code=end

